//
//  NetWork.h
//  UI18_AFNetWork_封装
//
//  Created by dllo on 15/8/31.
//  Copyright (c) 2015年 蓝鸥科技. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NetWork : NSObject
/*
 * @brief GET网络请求
 * @param url 请求网址
 * @param dic 拼接的body
 * @param block 返回的请求结果
 
 */

+ (void)netWorkGETRequestWithURL:(NSString *)url Paramater:(NSDictionary *)dic ResultBlock:(void(^)(id result))block;

// 上传
// 下载
// 更新
// 关闭请求
//

/*
 @brief POST网络请求
 @param url 请求网址
 @param dic 拼接的body
 @param block 返回的请求结果
 
 */

+ (void)netWorkPOSTRequestWithURL:(NSString *)url Body:(NSString *)bodyString Paramater:(NSDictionary *)dic ResultBlock:(void (^)(id result))block;

// post无body
+ (void)netWorkPOSTRequestWithURL:(NSString *)url Paramater:(NSDictionary *)dic ResultBlock:(void(^)(id result))block;

// get有body
+ (void)netWorkGETRequestWithURL:(NSString *)url Body:(NSString *)bodyString Paramater:(NSDictionary *)dic ResultBlock:(void (^)(id result))block;

// 没有加载的效果进行网络请求
+ (void)netWorkGETRequestWithURLAndNoMub:(NSString *)url Paramater:(NSDictionary *)dic ResultBlock:(void(^)(id result))block;


// 带缓存的GET
+ (void)netWorkGETRequestWithURL:(NSString *)url Paramater:(NSDictionary *)dic IndexPath:(NSString *)path ResultBlock:(void (^)(id))block;

@end
